package cn.sq.musicserver.utils;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * User: SQ
 * Date: 2020/12/28
 * Time: 16:35
 * Description:
 */
public class MuiscUtils {
    /**
     * 音乐支持类型
     * @return
     */
    public static String[] MsicExtensions(){
        String[] extensions={
                "mp3",
                "flac",
                "ape",
                "wav",
                "mpeg"
        };
        return extensions;
    }

    /**
     * 是否是支持的类型
     * @param extension
     * @return
     */
    public static boolean isMsicExtensions (String extension){
        String[] strings = MsicExtensions();
       return Arrays.asList(strings).contains(extension);

    }

}
